<template>
  <!-- 页脚 -->
  <div class="myFooter-wrap" v-show="showFooter">
    <div class="myFooter">
      <div class="footer-title">{{ footerTitle }}</div>
      <div class="icp">
        备案号：
        <a href="https://beian.miit.gov.cn/" target="_blank">湘ICP备2024063033号-1</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    showFooter: {
      type: Boolean,
      default: true,
    },
  },
  data() {
    return {};
  },
  computed: {
    footerTitle() {
      let footerList = this.$store.state.system.webInfo.footerList;
      return footerList[Math.floor(Math.random() * footerList.length)].value;
    },
  },
};
</script>

<style scoped>
.myFooter-wrap {
  user-select: none;
  animation: hideToShow 2s;
  background: var(--background);
}

.myFooter {
  border-radius: 0 0 1.5rem 1.5rem;
  background: var(--gradientBG);
  text-align: center;
  color: var(--white);
  background-size: 300% 300%;
  animation: gradientBG 10s ease infinite;
}

.footer-title {
  padding-top: 10px;
  font-size: 16px;
}

.icp,
.icp a {
  color: var(--maxGreyFont);
  font-size: 13px;
}

.icp {
  padding-top: 10px;
  padding-bottom: 10px;
}

.icp a {
  text-decoration: none;
  transition: all 0.3s;
}

.icp a:hover {
  color: var(--themeBackground);
}
</style>
